package xcmg.device.dao.mapper.borrowMaterial;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.borrowMaterial.BorrowMaterialDO;
import xcmg.device.dao.entity.borrowMaterial.BorrowMaterialExportDO;
import xcmg.device.dao.entity.returnMaterial.ReturnMaterialDO;

import java.util.List;

/**
 * @author ZHANGK
 * @date 2020/6/11
 **/
@Mapper
public interface BorrowMaterialMapper {

    boolean insert(BorrowMaterialDO borrowMaterialDO);

    boolean delete(BorrowMaterialDO borrowMaterialDO);

    boolean updateById(BorrowMaterialDO borrowMaterialDO);

    List<BorrowMaterialDO> selectList(BorrowMaterialDO borrowMaterialDO);

    BorrowMaterialDO selectById(@Param("id") String id);

    List<BorrowMaterialDO> selectBatchByIds(List<String> ids);

    boolean batchUpdate(List<BorrowMaterialDO> borrowMaterialDOList);

    boolean batchDelete(List<String> ids);

    boolean updateByCode(BorrowMaterialDO borrowMaterialDO);

    boolean batchUpdateByCode(List<BorrowMaterialDO> borrowMaterialDOList);

    BorrowMaterialDO selectByCode(String code);

    List<BorrowMaterialExportDO> selectExportList(BorrowMaterialDO borrowMaterialDO);
}
